package com.hsbc.manager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hsbc.entity.Permission;
import com.hsbc.manager.dao.PermissionRepository;
import com.hsbc.manager.service.PermissionService;

@Service
public class PermissionServiceImpl implements PermissionService {

	@Autowired
	private PermissionRepository permissionRepository;
	
	@Override
	public List<Permission> findPermissionListByRoleId(int roleId) {
		return permissionRepository.findByRoleId(roleId);
	}

}
